/**
 * Created by tangqiaojie <2482366539@qq.com> on 2020/3/30 0030
 */

import { nextTick } from '../../lib/utils.js';

const saveTableDetail = (tableContent) => {
  window.postMessage(
    {
      event: 'asyncTableDetail',
      data: tableContent
    },
    '*'
  );
};

const sendTableDetail = (tableContent) => {
  window.postMessage(
    {
      event: 'asyncTableDetailRequest'
    },
    '*'
  );
};

const saveIncome2=(html)=>{
    let tableContent = {
      declareType: '居民企业(查账征收)所得税月（季）申报',
      title: 'A201010 免税、减计收入、加计扣除及所得减免优惠明细表',
      html: '<div></div><div align="center" class="dbt">A201010\t免税、减计收入、加计扣除及所得减免优惠明细表</div>'+html+'</div>',
      css: ``
    };
    saveTableDetail(tableContent);
};

const saveIncome3=(html)=>{
  let tableContent = {
    declareType: '居民企业(查账征收)所得税月（季）申报',
    title: 'A201020固定资产加速折旧(扣除)明细表',
    html: '<div></div><div align="center" class="dbt">A201020固定资产加速折旧(扣除)明细表</div>'+html+'</div>',
    css: ``
  };
  saveTableDetail(tableContent);
};

const saveIncome1=(html)=>{
  let tableContent = {
    declareType: '居民企业(查账征收)所得税月（季）申报',
    title: 'A200000 中华人民共和国企业所得税月(季)度预缴纳税申报表(A类，2018版)',
    html: '<div></div><div align="center" class="dbt">A200000 中华人民共和国企业所得税月(季)度预缴纳税申报表(A类，2018版)</div>'+html+'</div>',
    css: ``
  };
  saveTableDetail(tableContent);
};

const saveIncome4=(html)=>{
  let tableContent = {
    declareType: '居民企业(查账征收)所得税月（季）申报',
    title: 'A201030 减免所得税优惠明细表',
    html: '<div></div><div align="center" class="dbt">A201030 减免所得税优惠明细表</div>'+html+'</div>',
    css: ``
  };
  saveTableDetail(tableContent);
};


const asyncZzs=()=>{

};


export {
  saveTableDetail,
  saveIncome2,
  saveIncome1,
  saveIncome3,
  saveIncome4
};
